import React from 'react'
import { View, Text, AsyncStorage } from 'react-native'
import { Button } from 'react-native-elements'

const mine = ({ navigation }) => {
    return (
        <View>
            <Text>mine</Text>
            <Button title="退出登录" onPress={_ => {
                AsyncStorage.setItem("Token", "")
                AsyncStorage.setItem("UserInfo", "")
                navigation.navigate("login")
            }}></Button>
        </View>
    )
}

export default mine
